import * as constants from './constants';

const defaultState = {
    loading: false,
    typeData: [], //分类数据
};

export default (state = defaultState, action) => {
    switch (action.type) {
        case constants.UPDATE_TYPE_DATA:
            return {...state, 'typeData': action.typeData};
        default:
            return state;
    }
}